package com.ruoyi.slope.ai.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预警规则配置对象 slope_ai_alert_rule_config
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
public class SlopeAiAlertRuleConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规则唯一标识符 (主键) */
    private String ruleId;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;

    /** 预警等级 (一级(红), 二级(橙), 三级(黄)) */
    @Excel(name = "预警等级 (一级(红), 二级(橙), 三级(黄))")
    private String alertLevel;

    /** 触发条件描述 */
    @Excel(name = "触发条件描述")
    private String triggerCondition;

    /** 通知方式 (如 ["SMS","Email","PlatformPopup"]) */
    @Excel(name = "通知方式 ")
    private String notificationMethods;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer isActive;

    public void setRuleId(String ruleId) 
    {
        this.ruleId = ruleId;
    }

    public String getRuleId() 
    {
        return ruleId;
    }

    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }

    public void setAlertLevel(String alertLevel) 
    {
        this.alertLevel = alertLevel;
    }

    public String getAlertLevel() 
    {
        return alertLevel;
    }

    public void setTriggerCondition(String triggerCondition) 
    {
        this.triggerCondition = triggerCondition;
    }

    public String getTriggerCondition() 
    {
        return triggerCondition;
    }

    public void setNotificationMethods(String notificationMethods) 
    {
        this.notificationMethods = notificationMethods;
    }

    public String getNotificationMethods() 
    {
        return notificationMethods;
    }

    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ruleId", getRuleId())
            .append("ruleName", getRuleName())
            .append("alertLevel", getAlertLevel())
            .append("triggerCondition", getTriggerCondition())
            .append("notificationMethods", getNotificationMethods())
            .append("isActive", getIsActive())
            .toString();
    }
}
